<!DOCTYPE html>
<!--<html lang="en" xmnls:th="http://www.thymeleaf.org" xmlns:th="http://www.w3.org/1999/xhtml"-->
	  <!--xmlns:xmnls="http://www.w3.org/1999/xhtml">-->
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>后台博客登录</title>
	<link th:href="@{/webjars/bootstrap/4.3.1/css/bootstrap.css}" rel="stylesheet">
	<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
	<link th:href="@{/css/sign.css}" rel="stylesheet">
</head>

<body class="text-center">
	<form class="form-signin" th:action="@{/admin/login}" method="post">
		<img class="mb-4"  th:src="@{/img/photo.jpg}" width="160" height="160">

		<p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
		<label class="sr-only" th:text="#{login.username}">Username</label>
		<input type="text" class="form-control" name="username"
			   th:placeholder="#{login.username}" required="" autofocus="">
		<label class="sr-only" th:text="#{login.password}">Password</label>
		<input type="password" class="form-control" name="password"
			   th:placeholder="#{login.password}" required="">
		<button class="btn btn-lg btn-primary btn-block" type="submit"
				th:text="#{login.signIn}">Sign in</button>
		<p class="mt-5 mb-3 text-muted">© 2019-2020</p>
		<a class="btn btn-sm" th:href="@{/(l='zh_CN')}">中文</a>
		<a class="btn btn-sm" th:href="@{/(l='en_US')}">English</a>
	</form>
</body>

</html>